package cn.tedu.csmall.product.ex;

public enum ServiceCode {
    OK(20000),
    ERR_NOT_FOUND(40400),
    ERR_BAN_REQUEST(40000),
    ERR_UNAUTHORIZED(40100),//未授权
    ERR_UNAUTHORIZED_DISABLES(40101),//禁用（用户失效）
    ERR_UNAUTHORIZED_DISABLED(40110),
    ERR_FORBIDDEN(40300),//禁止访问
    ERR_CONFLICT(40900),
    ERR_INSERT(50000),
    ERR_DELETE(50100),
    ERR_UPDATE(50200),
    ERR_JWT_EXPIRED(60000),
    ERR_JWT_PARSE(60100);

    private Integer value;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    ServiceCode(Integer value) {
        this.value=value;
    }

    @Override
    public String toString() {
        return ""+ value;
    }
}
